/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Sjakk;
import java.io.Serializable;
import javax.swing.ImageIcon;

/**
 * Programmeringsprosjekt 2011 / Gruppe 2
 * @author Fjogen
 */
public class Brikke implements Serializable {
    private final String id;
    final String farge;
    private int posX;
    private int posY;
    boolean startPos;
    ImageIcon icon;

    public Brikke(String id, String farge, int posX, int posY, boolean startPos){
        this.id = id;
        this.farge = farge;
        this.posX = posX;
        this.posY = posY;
        this.startPos = true;
    }
    public String getId(){
        return id;
    }
    public String getFarge(){
        return farge;
    }
    public int getPosX(){
        return posX;
    }
    public int getPosY(){
        return posY;
    }
    public boolean getStartPos(){
        return startPos;
    }
    public ImageIcon getIcon(){
        return icon;
    }
    public void setStartPos(boolean variabel){
        startPos = variabel;
    }
    public void setPosisjon(int posX, int posY){
        this.posX = posX;
        this.posY = posY;
    }
    public int[][] lovligeFlytt(){
        int[][] lovlige = new int[0][0];
        return lovlige;
    }
    public boolean erKonge(){
        return false;
    }
    public String toString(){
        return id+" ("+farge+")"+" står i rute"+posX+" "+posY;
    }
}
